package com.dsg.service.account;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dsg.entity.account.DsgAccount;

/**
 * <p>
 * 油公司總帳 服务类
 * </p>
 *
 * @author system
 * @since 2020-07-12
 */
public interface IDsgAccountService extends IService<DsgAccount> {
    /**
     * 查询列表
     * @param page
     * @param dsgAccount
     * @return
     */
    Page<DsgAccount> selectByList(Page<DsgAccount> page, DsgAccount dsgAccount);

    /**
     * 對賬
     * @param dsgAccount
     * @return
     */
    DsgAccount checkBank(DsgAccount dsgAccount);

    /**
     * 查詢列表明細（分頁）
     * @param page
     * @param dsgAccount
     * @return
     */
    Page<DsgAccount> selectByListDetailed(Page<DsgAccount> page, DsgAccount dsgAccount);

    /**
     * 新增总账
     * @param dsgAccount
     * @return
     */
    boolean addDsgAccount(DsgAccount dsgAccount);

    /**
     * 兌現
     * @param idList
     */
    void cash(String idList);

}
